#ifndef utility_h
#define utility_h

#define _WIN32_WINNT 0x0500

#include <stdio.h>
#include <string>
#include <Windows.h>

using namespace std;

#pragma comment(lib, "Pdh.lib")

string IntToStr(int nValue);
string UlToStr(unsigned long n_Value);
void InitCPUsage();
void CleanupCPUsage();
int GetCPUsage();
DWORD GetIdleTime();
BOOL CheckApp(char * pszAppName);

#endif
